#include "Stack.h"

void test01()
{
    ST st;

    STInit(&st);
    STPush(&st,1);
    STPush(&st,2);

    printf("%d ",STTop(&st));
    STPop(&st);

    STPush(&st,3);
    STPush(&st,4);

    printf("%d ",STTop(&st));
    STPop(&st);

    STPush(&st,5);
    
    while(!STEmpty(&st))
    {
        printf("%d ",STTop(&st));
        STPop(&st);
    }
    printf("\n");

    STDestroy(&st);
}
int main()
{
    test01();

    system("pause");
    return 0;
}